//
//  UIButton+YJCSetting.h
//  MyDemos
//
//  Created by IOS3 on 2019/3/8.
//  Copyright © 2019 iMac. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (YJCSetting)

/// set title for state
- (UIButton *(^)(NSString *title, UIControlState state))setTitle;

/// set titleColor for state
- (UIButton *(^)(UIColor *color, UIControlState state))setTitleColor;

/// set backgroundColor 
- (UIButton *(^)(UIColor *color))setBGColor;

/// set imageName for state
- (UIButton *(^)(NSString *imageName, UIControlState state))setImage;

/// set background imageName for state
- (UIButton *(^)(NSString *imageName, UIControlState state))seBGtImage;

/// set titleFont
- (UIButton *(^)(CGFloat size))setSysTitleFont;

/// set titleFont(name, size)
- (UIButton *(^)(NSString *name, CGFloat size))setNameTitleFont;


/// set frame
- (UIButton *(^)(CGRect frame))setFrame;

/// set tag
- (UIButton *(^)(NSInteger tag))setTag;

@end

NS_ASSUME_NONNULL_END
